<?php
class Company extends AppModel {
	public $name = 'Company';
	public $displayField = 'name';
	public $validate = array(
		'name' => array(
			'notempty' => array(
				'rule' => array('notempty'),
				
			),
		),

	);
	
	public $hasMany = array(
		'Career' => array(
			'className' => 'Career',
			'foreignKey' => 'company_id',
			'dependent' => false,
			
		),
		'CompanyInformation' => array(
			'className' => 'CompanyInformation',
			'foreignKey' => 'company_id',
			'dependent' => false,
			
		),
		'Product' => array(
			'className' => 'Product',
			'foreignKey' => 'company_id',
			'dependent' => false,
			
		),
		'Service' => array(
			'className' => 'Service',
			'foreignKey' => 'company_id',
			'dependent' => false,
			
		),
		'ClassificationCompany' => array(
			'className' => 'ClassificationCompany',
			'foreignKey' => 'company_id',
		)
	);


	
	public $belongsTo = array(
		'User' => array(
			'className' => 'User',
			'foreignKey' => 'user_id',
			
		),
		'Country' => array(
			'className' => 'Country',
			'foreignKey' => 'country_id'
		)
	);

}
?>